package com.wetao.lib_common.greendao.model;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.NotNull;

@Entity
public class PageGrid {
    @Id(autoincrement = true)
    private Long id;
    //自己计算，这一课时在这一页的范围
    private Integer startX;
    private Integer endX;
    private Integer startY;
    private Integer endY;

    @NotNull
    private Long pagePictureId;

    @Generated(hash = 78698479)
    public PageGrid(Long id, Integer startX, Integer endX, Integer startY,
            Integer endY, @NotNull Long pagePictureId) {
        this.id = id;
        this.startX = startX;
        this.endX = endX;
        this.startY = startY;
        this.endY = endY;
        this.pagePictureId = pagePictureId;
    }

    @Generated(hash = 996751022)
    public PageGrid() {
    }

    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getStartX() {
        return this.startX;
    }

    public void setStartX(Integer startX) {
        this.startX = startX;
    }

    public Integer getEndX() {
        return this.endX;
    }

    public void setEndX(Integer endX) {
        this.endX = endX;
    }

    public Integer getStartY() {
        return this.startY;
    }

    public void setStartY(Integer startY) {
        this.startY = startY;
    }

    public Integer getEndY() {
        return this.endY;
    }

    public void setEndY(Integer endY) {
        this.endY = endY;
    }

    public Long getPagePictureId() {
        return this.pagePictureId;
    }

    public void setPagePictureId(Long pagePictureId) {
        this.pagePictureId = pagePictureId;
    }
}
